import Vue from 'vue';
import App from './App';
import router from './router';
import Vuex from "vuex";
import store from "./store";

//全局引入echarts
import echarts from 'echarts';
Vue.prototype.$echarts = echarts;

//全局引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false;

//全局注册axios 网咯请求库
import axios from "axios"
axios.defaults.baseURL = "http://localhost:8088"
Vue.prototype.$axios = axios;

//vuex注册
Vue.use(Vuex)

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
